/*******************************************************************************
*  file    : main.cpp
*  created : 22.07.2013
*  author  : Slyshyk Oleksiy (alexSlyshyk@gmail.com)
*******************************************************************************/

import QtQuick          2.2
import QtQuick.Controls 1.2
import QtQuick.Layouts  1.1
import QtQuick.Window   2.2

import App.Controller   0.1

ApplicationWindow {

    property string wndName : qsTr("Backuper")
    property string strVer  : controller.version
    title: wndName + "   " + strVer
    width:  640
    height: 480

    menuBar: MenuBar {
        Menu {
            title: qsTr("File")
            MenuItem {
                text: qsTr("Exit")
                onTriggered: Qt.quit();
            }
        }
        Menu {
            title: qsTr("Settings")
            MenuItem {
                text: qsTr("Settings")
            }
        }
    }

    toolBar: ToolBar {
        ToolButton {
            text: "Tool"
            smooth: true
            transformOrigin: Item.Center
            antialiasing: true
            z: 1
            activeFocusOnPress: false
            tooltip: "Tool"
        }
    }

    statusBar: StatusBar {
        RowLayout {
            Label {
                id:   status_label
                text: "Status Bar"
            }
        }
    }

    Controller {
        id: controller
    }
}
